from PyQt5.QtWidgets import *

class TabWidget(QTabWidget):
    def __init__(self, widgetList,nameList,parent=None):
        super(TabWidget, self).__init__(parent)
        for idx,widget in enumerate(widgetList):
            self.addTab(widget, nameList[idx])


